package com.iv.durian.cloud.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.Date;

@Data
@Builder
@ApiModel(value="学生课程对象")
public class StudentLessionVo {

    @ApiModelProperty(value="学生课程ID")
    private Integer id;

    @ApiModelProperty(value="学员ID")
    private Integer studentId;

    @ApiModelProperty(value="课程ID")
    private Integer lessionId;

    @ApiModelProperty(value="用户ID")
    private Integer userId;

    @ApiModelProperty(value="学员名字")
    private String studentName;

    @ApiModelProperty(value="课程名称")
    private String lessonName;

    @ApiModelProperty(value="课程老师")
    private String teacher;

    @ApiModelProperty(value="课程价格")
    private double lessonPrice;

    @ApiModelProperty(value="课程提供者 0-机构 1-个人")
    private Integer source;

    @ApiModelProperty(value="课程状态 0-维护 1-上线")
    private Integer statust;

    @ApiModelProperty(value="学生课程记录建立时间")
    @JsonProperty("create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value="学生课程记录最后更新时间")
    @JsonProperty("update_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
